package com.rfid.businness;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rfid.dao.interfaces.CarreraDao;
import com.rfid.domain.Carrera;

@Service
public class CarreraBusinness {

	@Autowired
	private CarreraDao carreraDao;
	@Autowired
	private Carrera carrera;
	
	
	public  Carrera obtenerCarrera (int idCarrera){
		try {
			carrera = carreraDao.obtenerCarrera(idCarrera);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return carrera;
		
	}
	

}
